#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# 打印list:
names = ['Michael', 'Bob', 'Tracy']
for name in names:
    print(name)
print("----------------1------------")
# 打印数字 0 - 9
for x in range(10):
    print(x)
print("----------------2------------")
#打印字符串
for charx in "I love China":
    print(charx)
print("----------------3------------")
#for ... else...
sites=["Baidu","Google","Runoob","Taobao"]
for site in  sites:
    if site=="Runoob":
        print("菜鸟教程")
        break
    print("循环数据:"+site)
else:
    print("没有循环数据!")

print("完成循环!")
print("----------------4------------")
for x in []:
    print("循环数据"+x)
else:
    print("没有循环数据")
print("----------------5------------")
